package com.oa.service;

import com.oa.vo.Page;
import com.oa.pojo.Attendance;

import java.util.List;

public interface AttendanceService {

    /**
     * 添加请假
     */
    void addAttendance(Attendance attendance);

    /**
     * 删除出勤
     */
    void deleteAttendance(Integer attendanceId);

    /**
     * 修改出勤
     * @param attendance
     */
    void updateAttendance(Attendance attendance);

    /**
     * 查看出勤
     * @return
     */
    List<Attendance> getAttendanceList();

    /**
     * 分页
     * @param pageNo
     * @param pageSize
     * @return
     */
    Page getAttendancePage(Integer pageNo, Integer pageSize);

    Attendance getAttendance(Integer attendanceId);
}
